package com.zqx.decorator.specificdecorator;

import com.zqx.decorator.abcomponent.Components;
import com.zqx.decorator.abdecorator.ComponentDecorator;
import lombok.extern.slf4j.Slf4j;

/**
 * description: 具体装饰类
 * @author zqx
 * @date 2018/09/03
 */
@Slf4j
public class ScrollBarDecorator extends ComponentDecorator {

    public ScrollBarDecorator(Components components) {
        super(components);
    }

    @Override
    public void display()
    {
        this.setScrollBar();
        super.display();
    }

    public void setScrollBar()
    {
        log.info("为构件增加滚动条");
    }
}
